package com.kpijavatraining6.module2.questions;

import java.io.BufferedWriter;
import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: Vladislav
 * Date: 07.11.13
 * Time: 23:08
 * To change this template use File | Settings | File Templates.
 */
public abstract class  QuestionStructure {
    protected String question;
    protected Topic topic;
    protected int questionLevel;

    public static final String CHECK_ANSWER_TYPE = "CHECK_ANSWER_TYPE";
    public static final String TEXT_ANSWER_TYPE = "CHECK_ANSWER_TYPE";


    public abstract boolean isRightAnswer(String userAnswer);
    public abstract void printQuestion();
    public abstract void printToFile(BufferedWriter bufferedWriter, String userAnswer);
    public abstract void printToFileOnlyQuestion(BufferedWriter bufferedWriter);

    public int getQuestionLevel(){
        return questionLevel;
    }

    public Topic getTopic(){
        return topic;
    }
}
